VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Accelerated SHA2-based HMACs [Updated]

Rde  (54 Submissions)   Encryption   VB 6.0   Advanced   Fri 12th August 2016   Tue 9th February 2021

Hashed-keyMessageAuthenticationCodes(HMACs)HMACwasdevisedbyHugoKrawczykTheHMACmechanismisdescribedinRFC2104:Krawczyk,H.,Bellare,M.,andR.Canetti,"HMAC:Keyed-HashingforMessageAuthentication",RFC2104,February1997.AHash-basedMessageAuthenticationCodecanbeusedtodetermineifmessagessentoverinsecurechannelshavebeenmodified.Thisworksbyeachpartyatbothsendssharingasecretkeyusedtosignthesentmessageandtoalsoauthenticatethereceivedmessage.Ifthekeyiscompromised(nolongersecret)thentheauthenticationcannotbeguaranteed.HMACisusedformessageintegritychecksbetweentwopartiesthatshareasecretkey,andworksincombinationwithaSHA-2messagedigestalgorithm.HMACisamethodforcomputingakeyedMACusingaSHA-2hashfunction.Itusesakeytomixinwiththeinputdatatoproducethefinalmessagedigest.ThisclassmakesveryfastopensourcecodeperformingthethreemostusedSHA-2hashfunctions(256-384-512)availabletoanyOSon32-bitx86withrudimentarymmx.SinceSHA-2isdefinedintermsofanarbitrarynumberofbits,thisHMACcodehasbeenwrittentoallowthemessageinputtoHMACtohaveanarbitrarynumberofoctetsandbits.MoreinformationaboutHMACcanbefoundat:https://csrc.nist.gov/publications/fips/fips198/fips-198a.pdf======================================================================================================================================================NowincludesoptionforFinalizetoalsoreturnthemessagebitlength.

Rate Accelerated SHA2-based HMACs [Updated] (3(3 Vote))

Download Accelerated SHA2-based HMACs [Updated]

Accelerated SHA2-based HMACs [Updated] Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters